/*
 *
 *  JMoney - A Personal Finance Manager
 *  Copyright (c) 2007 Nigel Westbury <westbury@users.sourceforge.net>
 *
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */

package net.sf.jmoney.oda.ui.wizards;

import net.sf.jmoney.model2.ExtendablePropertySet;
import net.sf.jmoney.model2.ListPropertyAccessor;

import org.eclipse.ui.IMemento;

interface IObjectList {
	/**
	 * Saves this object in the given memento.
	 * 
	 * Note that this method reverses things. Whileas this object is a leaf
	 * object in the selection tree, this object is the outermost element in
	 * the XML with the parent items from the selection tree being child
	 * items in the XML.
	 */
	void save(IMemento memento);

	boolean isUsed(ListPropertyAccessor listProperty);

	ExtendablePropertySet getPropertySet();
}